if __name__ == "__main__":
    try:
        with open("data.txt", "w") as f:
            for each_line in f:
                print(each_line)
    except OSError as reason:
        print("出错啦：" + str(reason))